package com.aaron.kjviewutils.glide;

/**
 * 作者：Aaron on 2017/2/10 16:48
 * 邮箱：kaijin.fang@edianniu.com
 */
public class JpgDataModel implements IGlideModel {

    private String dataModelUrl;

    public JpgDataModel(String dataModelUrl) {
        this.dataModelUrl = dataModelUrl;
    }

    @Override
    public String buildDataModelUrl(int width, int height) {
        return String.format("%s?imageView2/1/w/%d/h/%d/format/jpg", dataModelUrl, width, height);
    }
}
